﻿@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}

<div class="text-center">
    @foreach(var user in Model.Users)
    {
        <div>@user.Id - @user.UserName</div>
    }
</div>

@section Scripts{
<script>
$(document).ready(function(){
    $.ajax({
        url:"/api/Values",
        success: function(res) {
            console.log(res);
            alert(res);
        },
        error: function(err) {
            console.log(err);
            alert("err:" +err);
        }
    });
});
</script>
}
